class Enrollment < ActiveRecord::Base

  belongs_to :user
  belongs_to :course
  
  validates_presence_of :actived
  validates_presence_of :user
  validates_presence_of :course
  
  validates_uniqueness_of:user_id, :scope => [:course_id]

end